/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.html.CommonAttributes;

/**
 * Column. Specifies attributes to be applied to a table column.
 * Commonly used to apply CSS to a column. Must be used within a colgroup
 * element.
 *
 * <h2>Example</h2> <pre><code class="html">
 *&lt;table&gt;
 *	&lt;colgroup&gt;
 *		<strong>&lt;col class="column1" /&gt;</strong>
 *		<strong>&lt;col class="column2" /&gt;</strong>
 *		<strong>&lt;col class="columns3and4" span="2" /&gt;</strong>
 *	&lt;/colgroup&gt;
 *	&lt;tr&gt;
 *		&lt;th&gt;lime&lt;/th&gt;
 *		&lt;th&gt;lemon&lt;/th&gt;
 *		&lt;th&gt;orange&lt;/th&gt;
 *		&lt;th&gt;blood orange&lt;/th&gt;
 *	&lt;/tr&gt;
 *	&lt;tr&gt;
 *		&lt;td&gt;8&lt;/td&gt;
 *		&lt;td&gt;7&lt;/td&gt;
 *		&lt;td&gt;12&lt;/td&gt;
 *		&lt;td&gt;5&lt;/td&gt;
 *	&lt;/tr&gt;
 *	...
 *&lt;/table&gt;
 *</code></pre>
 *
 *
 * @see Colgroup
 * @see Tr
 * @author sergio.valdez
 */
public class Col extends CommonAttributes{

    /**
     * can be used to specify a number of columns.
     */
    private String span;
    /**
     * can be used to horizontally align the content of the cell.
     * The value can be left, center, right, justify or char.
     */
    private String align;
    /**
     * can be used to vertically align the content of the cell.
     * The value can be top, middle, bottom or baseline.
     */
    private String valign;
    /**
     * can be used to specify a character with which cells will align,
     * such as a decimal point. It is not supported by any major browser.
     */
    private String cssChar;
    /**
     * can be used to specify the number of pixels the alignment should be
     * offset from the char character. It is not supported by any major browser.
     */
    private String charoff;

    /**
     * can be used to specify a number of columns.
     * @return the span
     */
    public String getSpan() {
        return span;
    }

    /**
     * can be used to specify a number of columns.
     * @param span the span to set
     */
    public void setSpan(String span) {
        this.span = span;
    }

    /**
     * can be used to horizontally align the content of the cell.
     * The value can be left, center, right, justify or char.
     * @return the align
     */
    public String getAlign() {
        return align;
    }

    /**
     * can be used to horizontally align the content of the cell.
     * The value can be left, center, right, justify or char.
     * @param align the align to set
     */
    public void setAlign(String align) {
        this.align = align;
    }

    /**
     * can be used to vertically align the content of the cell.
     * The value can be top, middle, bottom or baseline.
     * @return the valign
     */
    public String getValign() {
        return valign;
    }

    /**
     * can be used to vertically align the content of the cell.
     * The value can be top, middle, bottom or baseline.
     * @param valign the valign to set
     */
    public void setValign(String valign) {
        this.valign = valign;
    }

    /**
     * can be used to specify a character with which cells will align,
     * such as a decimal point. It is not supported by any major browser.
     * @return the cssChar
     */
    public String getCssChar() {
        return cssChar;
    }

    /**
     * can be used to specify a character with which cells will align,
     * such as a decimal point. It is not supported by any major browser.
     * @param cssChar the cssChar to set
     */
    public void setCssChar(String cssChar) {
        this.cssChar = cssChar;
    }

    /**
     * can be used to specify the number of pixels the alignment should be
     * offset from the char character. It is not supported by any major browser.
     * @return the charoff
     */
    public String getCharoff() {
        return charoff;
    }

    /**
     * can be used to specify the number of pixels the alignment should be
     * offset from the char character. It is not supported by any major browser.
     * @param charoff the charoff to set
     */
    public void setCharoff(String charoff) {
        this.charoff = charoff;
    }

}
